package com.ruoyi.web.controller.teaching;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teaching.service.PlatformCCourseOutlineService;
import com.ruoyi.teaching.service.PlatformCCourseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 王旭
 * @since 2024-06-24
 */
@RestController
@RequestMapping("/platform/courseOutline")
@Api(tags = "platform-课程大纲管理")
public class PlatformCCourseOutlineController {

    @Autowired
    private PlatformCCourseOutlineService platformCCourseOutlineService;

    /**
     * 老师查询自己备课授课的大纲
     */
//    @PreAuthorize("@ss.hasPermi('platform:courseOutline:listTeacher')")
    @GetMapping("/listTeacher")
    @ApiOperation(value = "老师查询自己备课授课的大纲", notes = "老师查询自己备课授课的大纲")
    public AjaxResult listTeacher(Integer parentId, Integer courseId) {
        return platformCCourseOutlineService.selectPlatformCCourseOutlineListTeacher(parentId, courseId);
    }

}

